package models

import "time"

type User struct {
	ID
	Username  string    `json:"username" gorm:"not null;comment:用户名"`
	Password  string    `json:"password" gorm:"not null;comment:密码"`
	Realname  string    `json:"realname" gorm:"comment:真实姓名"`
	Gender    string    `json:"gender" gorm:"comment:性别"`
	Age       int       `json:"age" gorm:"comment:年龄"`
	Birthdate string    `json:"birthdate" gorm:"comment:出生日期"`
	Tel       string    `json:"tel" gorm:"comment:电话"`
	Email     string    `json:"email" gorm:"comment:邮箱"`
	Address   string    `json:"address" gorm:"comment:地址"`
	Status    string    `json:"status" gorm:"comment:是否有效 0否 1是"`
	RegTm     time.Time `json:"regTm" gorm:"comment:注册时间"`
	Remarks   string    `json:"remarks" gorm:"comment:备注"`
	Timestamps
}
